# Dockerfile for one_cms

From registry.cn-beijing.aliyuncs.com/fx/base

MAINTAINER Jerry "xiuce123@126.com"

ENV RAILS_ENV 'production'
RUN chmod 0600 /root/.ssh/id_rsa
RUN mkdir -p /var/www \
    && cd /var/www \
    && git clone git@gitee.com:myjacksun/one_cms.git

WORKDIR /var/www/one_cms

RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
RUN /bin/bash -l -c "bundle install"


# # Publish port 3000
EXPOSE 3000

# Start puma when container starts
#ENTRYPOINT /usr/bin/start-server
